import Vue from 'vue';
import App from './App';
import store from './store';

Vue.config.productionTip = false;

App.mpType = 'app';

// import Vconsole from 'vconsole';
// let vConsole = new Vconsole();
// Vue.use(vConsole);

import * as filters from '@/utils/filters';

Object.keys(filters).forEach((key) => {
    Vue.filter(key, filters[key]);
});

import router from '@/js_sdk/bobo-router/index.js';

import $constants from '@/constants/index';
Vue.prototype.$constants = global.$constants = $constants;

import uView from 'uview-ui';
Vue.use(uView);

import routerLink from '@/components/router-link';
Vue.component('router-link', routerLink);

const app = new Vue({
    store,
    ...App,
});
app.$mount();
